//该文件是导出组件供其它vue项目引入该组件

import ZuiBanner from './zui-banner'
import ZuiSearch from './zui-search'
import ZuiText from './zui-text'
import ZuiRichText from './zui-rich-text'


const components = [
    ZuiBanner,
    ZuiSearch,
    ZuiText,
    ZuiRichText,
]

//install是让业务代码在main.js 引入之后 use(myUi)  注册到全局用的
const install = (app, opts = {}) => {
    components.forEach(item => {
        app.component(item.name, item)
    })
}

const exportObject = {
    // 全局导出
    version: '1.0.0',
    install
};
export {
    install
}
export default exportObject;
export {default as ZuiBanner} from './zui-banner'
export {default as ZuiSearch} from './zui-search'
export {default as ZuiText} from './zui-text'
export {default as ZuiRichText} from './zui-rich-text'
